int initOwner(int ownerId, char** atts, int size, int beta, unsigned char** pubBytes, int* pubLen);

int owner_initDiscreteLogMap(int maxVal, int ownerId, kpabe_pub_t* pub);

int enc_simple(char** atts, int nAtts, int index, int value, unsigned char** cipher, int* len);

int enc_slidingWindow_Aggregate1(char** atts, int nAtts, int index, int value, unsigned char** cipher, int* len);
int enc_slidingWindow_Aggregate3(int streamId, char **atts1, int nAtts1, char **atts2, int nAtts2, int index, int value, unsigned char **cipher1, int
len1, unsigned char**cipher2, int *len2);

int enc_det(int streamId, int val, unsigned char **cipher, int *len);

int generateTransformKey(char* policy, unsigned char** tk, int policyId, int* len);

int generateUserDecryptionKey(unsigned char** key, int* len, int policyId);

int generateUserMaskValue(int alpha, unsigned char** mask, int* len);

int generateUserDetKey(unsigned char **key, int *len);
